import request from '@/utils/request'

// 查询车辆维修记录列表
export function listFixRecord(query) {
  return request({
    url: '/extend/fixRecord/list',
    method: 'get',
    params: query
  })
}

// 查询车辆维修记录详细
export function getFixRecord(id) {
  return request({
    url: '/extend/fixRecord/' + id,
    method: 'get'
  })
}

// 新增车辆维修记录
export function addFixRecord(data) {
  return request({
    url: '/extend/fixRecord',
    method: 'post',
    data: data
  })
}

// 修改车辆维修记录
export function updateFixRecord(data) {
  return request({
    url: '/extend/fixRecord',
    method: 'put',
    data: data
  })
}

// 删除车辆维修记录
export function delFixRecord(id) {
  return request({
    url: '/extend/fixRecord/' + id,
    method: 'delete'
  })
}
